<div class="widget">
	<div class="widget-header bg-blue">
		<i class="widget-icon icon-notebook"></i> 
		<span class="widget-caption"> 新增老师 </span>
		<div class="widget-buttons">
			<a href="javascript:void(0);" onclick="handlerCancel(this);" title="关闭"
				 data-toggle="dispose" data-refresh-table="#table-teacher"> <i class="fa fa-times"></i> </a> 
		</div>
	</div>
	<div class="widget-body">
		<!-- TODO 基本信息 -->
		<div class="widget radius-bordered mgbt-xs-10">
			<div class="widget-header">
				<i class="widget-icon icon-notebook"></i> 
				<span class="widget-caption"> 基本信息 </span>
			</div>
			<div class="widget-body editor-body-sm editor-body-teacher">
				
			</div>
		</div>
	</div>
</div>

<!-- 提交表单 ========================================================= -->
<form id="editor-form-teacher" action="/miwawa/{dbname}/common/update" method="post" 
			name="com.app.miwawa.api.eam.entity.Teacher">
			<input type="hidden" name="bean['status']" value="0">
			<input type="hidden" name="bean['invalid']" value="F">
</form>
    
<script type="text/javascript">
	jQuery(function() {
		initDate();
	});
	
	function initDate(){
		var teacher = jQuery("#table-teacher").data("selectedRow");
		
		jQuery(".editor-body-teacher").loadform("load", {
			templateId: "#view-teacher-template",
			templatePath: "/miwawa/content/eam/teacher/template.html",
			templateData: teacher,
			templateHelper: {
				"eq":function(value, label){
					if(value == label) return "checked";
				}
			}
		});
		
		require(['jquery.plugin.form'],function(form){
			form.datepicker(".date-selector");
			form.tooltip("[data-toggle='tooltip']");
		});
	}
</script>